<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<c:set var="cp" scope="session" value="${pageContext.request.servletContext.contextPath}" />
<!DOCTYPE html5>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 ,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>结算页面</title>
<link href="${cp}/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${cp}/basic/css/demo.css" rel="stylesheet" type="text/css" />
<link href="${cp}/css/cartstyle.css" rel="stylesheet" type="text/css" />
<link href="${cp}/css/jsstyle.css" rel="stylesheet" type="text/css" />
<link href="${cp}/css/hmstyle.css" rel="stylesheet" type="text/css" />
<link href="${cp}/css/skin.css" rel="stylesheet" type="text/css" />
<script src="${cp}/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<script src="${cp}/AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>
<script type="text/javascript" src="${cp}/js/address.js"></script>
<script type="text/javascript" src="${cp}/js/introduction.js?xxx"></script>
</head>
<body>
	<div class="clear"></div>
	<div class="concent">
		<!--地址 -->
		<div class="paycont">
			<div class="address">
				<h3>确认收货地址</h3>
				<div class="control">
					<div class="tc-btn createAddr theme-login am-btn am-btn-danger">使用新地址</div>
				</div>
				<div class="clear"></div>
				<div class="per-border"></div>
				<ul id="showAdd"></ul>
				<div class="per-border"></div>
				<div class="clear"></div>
					<ul>
					<div class="per-border"></div>
					<li class="user-addresslist defaultAddr">
						<div class="address-left">
							<div class="user DefaultAddr">
								<span class="buy-address-detail">   
               						<span class="buy-user" id="default-userName"></span>
									<span class="buy-phone" id="default-phone"></span>
								</span>
							</div>
							<div class="default-address DefaultAddr">
								<span class="buy-line-title buy-line-title-type">收货地址：</span>
									<span class="buy--address-detail">
							   		<span id="default-province">湖北</span>省
									<span id="default-city">武汉</span>市
									<span id="default-area">洪山</span>区
									<span id="default-detail">雄楚大道666号(中南财经政法大学)</span>
								</span>
							</div>
							<ins class="deftip">默认地址</ins>
						</div>
						<div class="address-right">
							<a href="../person/address.html">
								<span class="am-icon-angle-right am-icon-lg"></span></a>
						</div>
						<div class="clear"></div>
						<div class="new-addr-btn">
							<a href="#" class="hidden">设为默认</a>
							<span class="new-addr-bar hidden">|</span>
							<a href="#">编辑</a>
							<span class="new-addr-bar">|</span>
							<a href="javascript:void(0);" onclick="delClick(this);">删除</a>
						</div>
					</li>
					<div class="per-border"></div>
					<li class="user-addresslist">
						<div class="address-left">
							<div class="user DefaultAddr">
								<span class="buy-address-detail">   
	                 				<span class="buy-user" id="userName1">艾迪 </span>
									<span class="buy-phone" id="phone1">15871145629</span>
								</span>
							</div>
							<div class="default-address DefaultAddr">
								<span class="buy-line-title buy-line-title-type">收货地址：</span>
								<span class="buy--address-detail">
							   		<span id="province1">湖北</span>省
									<span id="city1">武汉</span>市
									<span id="area1">武昌</span>区
									<span id="detail1">东湖路75号众环大厦2栋9层902</span>
								</span>
							</div>
							<ins class="deftip hidden">默认地址</ins>
						</div>
						<div class="address-right">
							<span class="am-icon-angle-right am-icon-lg"></span>
						</div>
						<div class="clear"></div>

						<div class="new-addr-btn">
							<a href="#">设为默认</a>
							<span class="new-addr-bar">|</span>
							<a href="#">编辑</a>
							<span class="new-addr-bar">|</span>
							<a href="javascript:void(0);"  onclick="delClick(this);">删除</a>
						</div>
					</li>
					
					<li class="user-addresslist">
						<div class="address-left">
							<div class="user DefaultAddr">
								<span class="buy-address-detail">   
	                 				<span class="buy-user" id="userName2">艾迪 </span>
									<span class="buy-phone" id="phone2">15871145629</span>
								</span>
							</div>
							<div class="default-address DefaultAddr">
								<span class="buy-line-title buy-line-title-type">收货地址：</span>
									<span class="buy--address-detail">
							   		<span id="province2">湖北</span>省
									<span id="city2">武汉</span>市
									<span id="area2">武昌</span>区
									<span id="detail2">东湖路75号众环大厦2栋9层902</span>
								</span>
							</div>
							<ins class="deftip hidden">默认地址</ins>
						</div>
						<div class="address-right">
							<span class="am-icon-angle-right am-icon-lg"></span>
						</div>
						<div class="clear"></div>

						<div class="new-addr-btn">
							<a href="#">设为默认</a>
							<span class="new-addr-bar">|</span>
							<a href="#">编辑</a>
							<span class="new-addr-bar">|</span>
							<a href="javascript:void(0);"  onclick="delClick(this);">删除</a>
						</div>
					</li>
				</ul>
				<div class="clear"></div>
			</div>
			<!--物流 -->
			<div class="logistics">
				<h3>选择物流方式</h3>
				<ul class="op_express_delivery_hot">
					<li data-value="yuantong" class="OP_LOG_BTN  "><i class="c-gap-right" style="background-position: 0px -468px"></i>圆通<span></span></li>
					<li data-value="shentong" class="OP_LOG_BTN  "><i class="c-gap-right" style="background-position: 0px -1008px"></i>申通<span></span></li>
					<li data-value="yunda" class="OP_LOG_BTN  "><i class="c-gap-right" style="background-position: 0px -576px"></i>韵达<span></span></li>
					<li data-value="zhongtong" class="OP_LOG_BTN op_express_delivery_hot_last "><i class="c-gap-right" style="background-position: 0px -324px"></i>中通<span></span></li>
					<li data-value="shunfeng" class="OP_LOG_BTN  op_express_delivery_hot_bottom"><i class="c-gap-right" style="background-position: 0px -180px"></i>顺丰<span></span></li>
				</ul>
			</div>
			<div class="clear"></div>

			<!--支付方式-->
			<div class="logistics">
				<h3>选择支付方式</h3>
				<ul class="pay-list">
					<li class="pay card"><img src="${cp}/images/wangyin.jpg" />银联<span></span></li>
					<li class="pay qq"><img src="${cp}/images/weizhifu.jpg" />微信<span></span></li>
					<li class="pay taobao"><img src="${cp}/images/zhifubao.jpg" />支付宝<span></span></li>
				</ul>
			</div>
			<div class="clear"></div>

			<!--订单 -->
			<div class="concent">
				<div id="payTable">
					<h3>确认订单信息</h3>
					<div class="cart-table-th">
						<div class="wp">

							<div class="th th-item">
								<div class="td-inner">商品信息</div>
							</div>
							<div class="th th-price">
								<div class="td-inner">单价</div>
							</div>
							<div class="th th-amount">
								<div class="td-inner">数量</div>
							</div>
							<div class="th th-sum">
								<div class="td-inner">金额</div>
							</div>
							<div class="th th-oplist">
								<div class="td-inner">配送方式</div>
							</div>

						</div>
					</div>
					<div class="clear"></div>
				</div>
				<tr class="item-list">
					<div class="bundle  bundle-last">
						<div class="bundle-main">
							<ul class="item-content clearfix">
								<div class="pay-phone">
									<li class="td td-item">
										<div class="item-pic">
											<img src="${cp}/images${settleInfo.imageUrl}" class="itempic J_ItemImg">
										</div>
										<div class="item-info">
											<div class="item-basic-info">
												<a href="${cp}/good/toDetail.do?goodId=${settleInfo.goodId}">${settleInfo.detail}</a>
											</div>
										</div>
									</li>
									
									<li class="td td-price">
										<div class="item-price price-promo-promo">
											<div class="price-content">
												<em class="J_Price price-now">${settleInfo.unitPrice}</em>
											</div>
										</div>
									</li>
								</div>
								<li class="td td-amount">
									<div class="amount-wrapper ">
										<div class="item-amount ">
											<span class="phone-title">购买数量</span>
											<div class="sl">
												${settleInfo.num}
											</div>
										</div>
									</div>
								</li>
								<li class="td td-sum">
									<div class="td-inner">
										<em tabindex="0" class="J_ItemSum number">${settleInfo.amount}</em>
									</div>
								</li>
								<li class="td td-oplist">
									<div class="td-inner">
										<span class="phone-title">配送方式</span>
										<div class="pay-logis">
											快递<b class="sys_item_freprice">10</b>元
										</div>
									</div>
								</li>
							</ul>
							<div class="clear"></div>
						</div>
					</div>
				</tr>
			</div>
			<div class="clear"></div>
			<div class="pay-total">

				<div class="clear"></div>
			</div>
			<!--含运费小计 -->
			<div class="buy-point-discharge ">
				<p class="price g_price ">
					合计（含运费） <span>¥</span><em class="pay-sum">${settleInfo.amount+10}</em>
				</p>
			</div>

			<!--信息 -->
			<div class="order-go clearfix">
				<div class="pay-confirm clearfix">
					<div id="holyshit269" class="submitOrder">
						<div class="go-btn-wrap">
							<a id="J_Go" href="success.html" class="btn-go" tabindex="0" title="点击此按钮，提交订单">提交订单</a>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="theme-popover-mask"></div>
	<div class="theme-popover">
		<!--标题 -->
		<div class="am-cf am-padding">
			<div class="am-fl am-cf">
				<strong class="am-text-danger am-text-lg">新增地址</strong> / <small>Add address</small>
			</div>
		</div>
		<hr />

		<div class="am-u-md-12">
			<form class="am-form am-form-horizontal">

				<div class="am-form-group">
					<label for="user-name" class="am-form-label">收货人</label>
					<div class="am-form-content">
						<input type="text" id="user-name" placeholder="收货人">
					</div>
				</div>

				<div class="am-form-group">
					<label for="user-phone" class="am-form-label">手机号码</label>
					<div class="am-form-content">
						<input id="user-phone" placeholder="手机号必填" type="email">
					</div>
				</div>

				<div class="am-form-group">
					<label for="user-phone" class="am-form-label">所在地</label>
					<div class="am-form-content address">
						<select id="province" class="dosm" onchange="provinceChange();">
							<option value="0">--省--</option>
						</select>
						<select id="city" class="city" onchange="cityChange();">
							<option value="0">--市--</option>
						</select>
						<select id="area" class="area">
							<option value="0">--区--</option>
						</select>
					</div>
				</div>

				<div class="am-form-group">
					<label for="user-intro" class="am-form-label">详细地址</label>
					<div class="am-form-content">
						<textarea class="" rows="3" id="user-intro" placeholder="输入详细地址"></textarea>
						<small>详细地址...</small>
					</div>
				</div>
				
				默认地址：<input type="radio" value="1" id="defAddId2" name="defAdd">是&nbsp;&nbsp;
			   <input type="radio" value="0" id="defAddId" name="defAdd" checked="checked">否

				<div class="am-form-group theme-poptit">
					<div class="am-u-sm-9 am-u-sm-push-3">
						<div class="am-btn am-btn-danger" onclick="saveAddress();">保存</div>
						<div class="am-btn am-btn-danger close">取消</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="clear"></div>
</body>
</html>